const wx = {
  appid: 'wxc9f2b146e69561b6',
  redirect_uri: 'http://yg.data58.cn/system/#/temp/gzhTransit?secretKey=7d8b131aed88f69706a0851348a68f7e&source=公众号',
  scope: ['snsapi_base', 'snsapi_userinfo '][0],
  state: 0, //可以填写a-zA-Z0-9的参数值，最多128字节
}

const getUrl = () => {
  return 'https://open.weixin.qq.com/connect/oauth2/authorize' +
    '?appid=' + wx.appid +
    '&redirect_uri=' + encodeURIComponent(wx.redirect_uri) +
    '&response_type=code' +
    '&scope=' + wx.scope +
    '&state=' + wx.state +
    '#wechat_redirect';
}
